@if (data.title) {
    <h2 mat-dialog-title>
        {{ data.title }}
    </h2>
}
<mat-dialog-content> {{ data.message }} </mat-dialog-content>
<mat-dialog-actions align="end">
    <button mat-button mat-dialog-close (click)="onClose()">OK</button>
</mat-dialog-actions>
